<div class="content">
	<table class="table table-bordered table-input" >
		<tbody>
		<tr>
			<td>主校区：</td>
			<td colspan="3">
				<select class="form-control" ng-options="unit.id as unit.showname for unit in unitList" ng-model="unit.fk_unit" form-check="must" form-check-alert="主校区不能为空！" ng-change="findMaster(unit.fk_unit)">
					<option value="">==请选择==</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>校区编号(市)：</td>
			<td>
				<input type="text" ng-model="unit.city_code" form-check="must" form-check-alert="校区编号(市)不能为空！" class="form-control">
			</td>
			<td>校区编号(区)：</td>
			<td>
				<input type="text" ng-model="unit.area_code" class="form-control" form-check="must" form-check-alert="校区编号(区)不能为空！">
			</td>
		</tr>
		<tr>
			<td >校区名字：</td>
			<td>
				<input type="text" ng-model="unit.name" form-check="must" form-check-alert="校区名字不能为空！" class="form-control">
			</td>
			<td >校区简称：</td>
			<td><input type="text" ng-model="unit.abbreviation" class="form-control"></td>
		</tr>
		<tr>
			<td >公众号id：</td>
			<td>
				<input type="text" ng-model="unit.appid"  class="form-control">
			</td>
			<td >公众号密钥：</td>
			<td><input type="text" ng-model="unit.app_secret" class="form-control"></td>
		</tr>
		<tr>
			<td >课表类型：</td>
			<td>
				<select class="form-control"  ng-model="unit.week" form-check="must" form-check-alert="课表类型不能为空！">
					<option value="">==请选择==</option>
					<option value="0">无单双周</option>
					<option value="1">分单双周</option>
				</select>
			</td>
			<td>开课时间：</td>
			<td>
				<input type="text" readonly="readonly"   ng-model="unit.curricula_time" class="form-control datepicker date-picker"/>
			</td>
		</tr>
		<tr>
			<td>校长：</td>
			<td>
				<select class="form-control" ng-options="master.id as master.name for master in masterList" ng-model="unit.principal">
					<option value="">==请选择==</option>
				</select>
			</td>
			<td>法人：</td>
			<td>
				<select class="form-control" ng-options="master.id as master.name for master in masterList" ng-model="unit.legal">
					<option value="">==请选择==</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>党支部书记：</td>
			<td>
				<select class="form-control" ng-options="master.id as master.name for master in masterList" ng-model="unit.party_chief">
					<option value="">==请选择==</option>
				</select>
			</td>
			<!--		<td>所属区镇：</td>-->
			<!--		<td>-->
			<!--			<select class="form-control" ng-options="road.id as road.name for road in roadList" ng-model="unit.fk_dictionary_town"  form-check="must" form-check-alert="所属区镇不能为空！">-->
			<!--				<option value="">==请选择==</option>-->
			<!--			</select>-->
			<!--		</td>-->
		</tr>
		<tr>
			<td>所属省份：</td>
			<td>
				<select class="form-control" ng-options="province.id as province.name for province in provinceList" ng-model="unit.fk_province"  form-check="must" form-check-alert="所属省份不能为空！" ng-change="findCity(unit.fk_province)">
					<option value="">==请选择==</option>
				</select>
			</td>
			<td>所属市区：</td>
			<td>
				<select class="form-control" ng-options="city.id as city.name for city in cityList" ng-model="unit.fk_city"  form-check="must" form-check-alert="所属市区不能为空！" ng-change="findDistrict(unit.fk_city)">
					<option value="">==请选择==</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>所属区县：</td>
			<td>
				<select class="form-control" ng-options="district.id as district.name for district in districtList" ng-model="unit.fk_district"  form-check="must" form-check-alert="所属区县不能为空！">
					<option value="">==请选择==</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>校区地址：</td>
			<td colspan="3"><input ng-model="unit.address" class="form-control" type="text"  form-check="must" form-check-alert="校区地址不能为空！"></td>
		</tr>
		<tr>
			<td>校区办别码：</td>
			<td>
				<select class="form-control" ng-options="bb.id as bb.name for bb in bbList" ng-model="unit.fk_dictionary_ascertained"  form-check="must" form-check-alert="校区办别码不能为空！" >
					<option value="">==请选择==</option>
				</select>
			</td>
			<td>校区类别码：</td>
			<td>
				<select class="form-control" ng-options="lb.id as lb.name for lb in lbList"  ng-model="unit.fk_dictionary_school_type"  form-check="must" form-check-alert="校区类别不能为空！" >
					<option value="">==请选择==</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>联系电话：</td>
			<td><input type="text" ng-model="unit.tel" class="form-control"  placeholder="示例：021-88888888" form-check="must,tel" form-check-alert="请输入正确的电话号码"></td>
			<td>电子邮箱：</td>
			<td><input type="text" ng-model="unit.email" form-check="must,email" form-check-alert="请填写正确的邮箱！" class="form-control"></td>
		</tr>
		<tr>
			<td>学制：</td>
			<td>
				<select class="form-control" ng-options="xz.id as xz.name for xz in xzList" ng-model="unit.fk_dictionary_school_system"  form-check="must" form-check-alert="学制不能为空！">
					<option value="">==请选择==</option>
				</select>
			</td>
			<td>邮政编码：</td>
			<td><input type="text" ng-model="unit.zip_code" class="form-control" maxlength="6" form-check="must,zipcode" form-check-alert="请填写正确的邮政编码"></td>
		</tr>
		<tr>
			<td>小学入学年龄：</td>
			<td><input type="text" ng-model="unit.primary_in_age" class="form-control" maxlength="3" form-check="number" form-check-alert="仅允许输入数字"></td>
			<td>初中入学年龄：</td>
			<td><input ng-model="unit.middle_in_age" type="text" class="form-control" maxlength="3" form-check="number" form-check-alert="仅允许输入数字"></td>
		</tr>
		<tr>
			<td>校区人数：</td>
			<td><input type="text" ng-model="unit.people_number" class="form-control" form-check="number" form-check-alert="仅允许输入数字"></td>
			<td>寄宿制：</td>
			<td>
				<select class="form-control" ng-options="js.id as js.name for js in jsList" ng-model="unit.fk_dictionary_boarding">
					<option value="">==请选择==</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>主教语言码：</td>
			<td>
				<select class="form-control" ng-options="zj.id as zj.name for zj in zjList" ng-model="unit.fk_dictionary_main_lan">
					<option value="">==请选择==</option>
				</select>
			</td>
			<td>辅教学语言码：</td>
			<td>
				<select class="form-control" ng-options="fj.id as fj.name for fj in fjList" ng-model="unit.fk_dictionary_subsidiary_lan">
					<option value="">==请选择==</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>行政区划码：</td>
			<td><input type="text" ng-model="unit.district" class="form-control"></td>
			<td>建校年月：</td>
			<td><input type="text" readonly="readonly"   ng-model="unit.constructed_date" class="form-control datepicker date-picker" form-check="must" form-check-alert="建校年月不能为空"/></td>
		</tr>
		<tr>
			<td>校庆起始日：</td>
			<td><input type="text" readonly="readonly"   ng-model="unit.celebrate_date_start" class="form-control datepicker date-picker" ></td>
			<td>校庆结束日：</td>
			<td><input type="text" readonly="readonly"  ng-model="unit.celebrate_date_end" class="form-control datepicker date-picker" ></td>
		</tr>
		<tr>
			<td>校区英文名字：</td>
			<td><input type="text" ng-model="unit.name_en" class="form-control"></td>
			<td>传真：</td>
			<td><input ng-model="unit.fax" type="text" class="form-control"  placeholder="示例：021-88888888" form-check="tel" form-check-alert="请填写正确的传真"></td>
		</tr>

		<tr>
			<td>经度位置：</td>
			<td><input type="text" ng-model="unit.longitude" class="form-control"></td>
			<td>纬度位置：</td>
			<td><input ng-model="unit.latitude" type="text" class="form-control"></td>
		</tr>

		<tr>
			<td>招生区域：</td>
			<td colspan="3"><input ng-model="unit.recruit_area" class="form-control" type="text"></td>
		</tr>
		<tr>
			<td>历史沿革：</td>
			<td colspan="3"> <textarea class="form-control" rows="6" cols="70" ng-model="unit.history_evolution"></textarea></td>
		</tr>
		</tbody>
	</table>
	<div style="width: 100%;text-align: right;margin-top: 20px;">
		<button ng-click="saveForm()" type="button" class="btn btn-success"><i class="iconfont icon-correct"></i>&nbsp;保存</button>
		<button ng-click="goback()" type="button" class="btn btn-secondary"><i class="iconfont icon-back"></i>&nbsp;返回</button>
	</div>
</div>